package com.cskaoyan.bean.chaosbean.config.bo;

import lombok.Data;

import javax.validation.constraints.Min;
import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author 楚夏三分
 * @datetime 2022/12/31 10:01
 * @description: TODO:
 */
@Data
public class AdminConfigExpress  {


    @Min(value = 0)
    private Integer market_express_freight_min;

    @Min(value = 0)
    private Integer market_express_freight_value;

    public static HashMap<String,String> getMap(AdminConfigExpress adminConfigExpress){
        HashMap<String, String> map = new HashMap<>();
        map.put("market_express_freight_min",adminConfigExpress.getMarket_express_freight_min().toString());
        map.put("market_express_freight_value",adminConfigExpress.getMarket_express_freight_value().toString());

        return map;

    }

    public static ArrayList<String> getList(){
        ArrayList<String> list = new ArrayList<>();
        list.add("market_express_freight_min");
        list.add("market_express_freight_value");

        return list;
    }


}
